class MyThread1 extends Thread{
@Override
    public void run(){
    System.out.println("Thread继承的");
    System.out.println(this);
}
}
class MyThread2 implements Runnable{
    @Override
    public void run(){
        System.out.println("Runable实现接口");
        System.out.println(Thread.currentThread());
    }
}
public class ThreadTest_current {
    public static void main(String[] args) {
        Thread t1 = new MyThread1();
        t1.start();
        Thread t2 = new Thread(new MyThread2());
        t2.start();
        System.out.println(Thread.currentThread().getName());
    }
}
